package com.tommy.jiami.view;

import android.content.*;
import android.util.*;
import android.widget.*;
import com.tommy.jiami.*;

public class DrawableCheckableLayout extends LinearLayout implements Checkable
{

	
	public DrawableCheckableLayout(Context context,AttributeSet  attrs){
		super(context,attrs);
	}

	@Override
	public void setChecked(boolean isChecked)
	{
		setBackgroundResource(isChecked?R.drawable.background_pressed:R.drawable.background_normal);
	}	
	
	@Override
	public boolean isChecked()
	{
		return false;
	}

	@Override
	public void toggle(){}
	
}
